package com.malphi.framework.mvc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.malphi.framework.logic.ContactLogic;

@Controller
@RequestMapping("/test.do") 
public class TestAction {
	
	@Autowired
	ContactLogic logic;
	
	@RequestMapping
	protected String handleRequest(ModelMap modelMap) throws Exception {
		System.out.println("logic:"+logic);
		System.out.println(logic.getAll());
		modelMap.put("test", logic.getAll());
		return "test";
	}

}
